package com.mowh.multithreading.active.object.active.active.object;

/**
 * @author mowh1gd
 * @create 2023/11/28 16:00
 */
class DisplayStringRequest extends MethodRequest<Object> {
    private final String s;
    public DisplayStringRequest(Servant servant, String s) {
        super(servant, null);//显示不涉及futureResult
        this.s = s;
    }
    @Override
    public void execute() {//显示
        servant.displayString(s);//真正执行的是servant实例
    }
}
